<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Hello Pandyle</title>
    <script src="../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="../dist/pandyle.js"></script>
</head>

<body>
    <div class="main">
        <c p-com="demo.book" p-context="|{title: '三国演义', author: '罗贯中', price: 150}">
    </div>

    <script>
        //使用Pandyle.config来设置comPath
        Pandyle.config({
            comPath: {
                demo: '/demo/components/{name}.html'
            }
        });
        $('.main').vm();
    </script>
</body>

</html>